const mongoose = require('mongoose');

let userSchema = new mongoose.Schema({
    openid: String,
    password: String,
    nickname: String,
    avatar: String,
    phone: String,
    age: String,
    addr: Array,
    gender: String,
    state: String,
});

module.exports = mongoose.model('userModel', userSchema, 'users');